/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package cn.webrx;

import java.util.Random;

/**
 * <p>Project: jse2303 - Arr1
 * <p>Powered by webrx On 2023-07-12 09:30:51
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Arr2 {
    public static void main(String[] args) {
        int[] level = {10, 50, 100, 200, 500, 1000, 2000, 5000, 10000};
        Random rand = new Random();
        int leve = level[rand.nextInt(level.length)];

        //数组声明
        int[] a = new int[3];
        byte[] b = new byte[1024];
        char[] c1 = "中国人".toCharArray();
        System.out.println(c1.length);
        for (char cc : c1) {
            System.out.println(cc);
        }
        System.out.println("---------");
        String[] s1 = "java程序设计".split("");
        System.out.println(s1.length);
        for (String cc : s1) {
            System.out.println(cc);
        }


    }
}
